<section>

<div class="well well-small">
    <h3>Send Offline Message</h3>
</div>

<?php if ($this->error): ?>
<p class="p">There were one or more issues with your submission. Please correct them as indicated below. </p>
<?php endif ?>

<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('offlinemail',array('controller'=>'Offlinemail', 'action' => 'send')));
$form->setAttribute('class', 'Form');
//$form->setAttribute('method', 'post');
?>

<p class="p"> From: <?php echo $this->username; ?></p>

<?php echo $this->form()->openTag($form); ?>
<dl class="dl">
<dt class="dt"><?php echo $this->formLabel($form->get('users')); ?></dt>
<dd class="dd"><?php echo $this->formElement($form->get('users')); echo $this->formElementErrors($form->get('users')); ?></dd>
<dt class="dt"><?php echo $this->formLabel($form->get('subject')); ?></dt>
<dd class="dd"><?php echo $this->formElement($form->get('subject')); echo $this->formElementErrors($form->get('subject')); ?></dd>
<dt class="dt"><?php echo $this->formLabel($form->get('message')); ?></dt>
<dd class="dd"><?php echo $this->formElement($form->get('message')); echo $this->formElementErrors($form->get('message')); ?></dd>

<dd class="dd"><?php echo $this->formElement($form->get('submit')); echo $this->formElementErrors($form->get('submit')); ?></dd>
</dl>
<?php echo $this->form()->closeTag() ?>
</section>

